﻿using System.Windows;
using Microsoft.Practices.Unity;
using Caliburn.Micro;

namespace SimpleQueryTool
{
    public partial class App : Application
    {
        Bootstrapper _bootstrapper;
    	private readonly IUnityContainer _container;

        public App()
        {
        	_container = new UnityContainer();
        	_container.RegisterType<IEventAggregator, EventAggregator>(new ContainerControlledLifetimeManager());
			_container.RegisterType<IWindowManager, WindowManager>(new ContainerControlledLifetimeManager());
            _bootstrapper = new Bootstrapper(_container);
        }
    }
}
